<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title></title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
  <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
  <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
  <script type="text/javascript">
    var __ctx = "${ctx}";
  </script>
</head>
<body>
<div id="detail" style="padding: 0 16px">
  <table id="tableDetail" lay-filter="tableDetail">
  </table>
</div>
<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>
<script>
  //一般直接写在一个js文件中
  layui.config({
    base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'table','publicMethods'], function () {
        var table = layui.table;
        var publicMethods = layui.publicMethods;
          table.render({
            defaultToolbar: [],
            elem: '#tableDetail'
            , height: 'full-25'
            , url:  '${ctx}/qbdms/wQbdFalProblemreset/list'
            , page: true //开启分页
            , method: 'post'
            , limit: 20
            , autoSort: false //是否排序
            , cols: [[{field: 'filldept', title: '填写单位',minWidth:'110'}
              , {field: 'fProblemname', title: '质量问题名称',minWidth:'130'}
              , {field: 'fModelsymbol', title: '型号代号',minWidth:'110'}
              , {field: 'fProductname', title: '产品名称',minWidth:'110'},
              {
                field: 'fDetecttime', title: '问题发生日期',minWidth:'130', templet: function (d) {
                  return publicMethods.timeData(d.fDetecttime);
                }
              },
              {field: 'fModeldevelopphase', title: '型号研制阶段',minWidth:'130'},
              {field: 'fDutydept', title: '问题责任单位',minWidth:'130'},
              {field: 'fIfreset', title: '是否完成归零',minWidth:'130'}
            ]]
            , where: {
              "Q_beginTime_DL": '${beginTime}',
              "Q_endTime_DE": '${endTime}',
              "Q_fModelsymbol_S":'${modelSymbol}',
              "Q_fDutydept_SL": '${dutyDept}',
              "Q_fCausationclass1_SL": '${fCausationclass1}',
              "workPhaseType":'${workPhaseType}',
              "gzjd":"${gzjd}"
            }
          });

      });
</script>
</body>
</html>